import tkinter as tk
from tkinter import PhotoImage


def main():
    root = tk.Tk()
    root.title("显示图片示例")
    photo = PhotoImage(file="./img/象棋棋盘3.png")  # 替换为你的图片路径
    # photo = PhotoImage(file="./img/棋子-象.png")
    label = tk.Label(root, image=photo)
    label.pack()
    root.mainloop()


if __name__ == "__main__":
    main()
